// Copyright Epic Games, Inc. All Rights Reserved.

#include "UMGPlugins.h"
#include "Styling/SlateStyleRegistry.h"
#include <../MyStyle.h>

#define LOCTEXT_NAMESPACE "FUMGPluginsModule"

void FUMGPluginsModule::StartupModule()
{
	// This code will execute after your module is loaded into memory; the exact timing is specified in the .uplugin file per-module
	FSlateStyleRegistry::UnRegisterSlateStyle(MyStyle::GetStyleSetName());
	MyStyle::Initialize();
}

void FUMGPluginsModule::ShutdownModule()
{
	// This function may be called during shutdown to clean up your module.  For modules that support dynamic reloading,
	// we call this function before unloading the module.
	MyStyle::ShutDown();
}

#undef LOCTEXT_NAMESPACE
	
IMPLEMENT_MODULE(FUMGPluginsModule, UMGPlugins)